package com.jf.cloud.api.combo.feign;

import com.jf.cloud.api.combo.vo.ComboSkuVo;
import com.jf.cloud.common.feign.FeignInsideAuthConfig;
import com.jf.cloud.common.response.ServerResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Set;

/**
 * @author zz
 * @date 2022/8/22 17:53
 */
@FeignClient(value = "jfcloud-combo",contextId ="comboSpuSku")
public interface ComboSpuSkuFeignClient {
    /**
     * 根据套餐id列表和sku列表获取套餐信息
     * @param comboIdList
     * @param skuIdList
     * @return
     */
        @GetMapping(value = FeignInsideAuthConfig.FEIGN_URL_PREFIX + "/comboSpuSku/comboVoListComboAndSkuList")
    ServerResponseEntity<List<ComboSkuVo>> comboVoListComboAndSkuList(@RequestParam("comboIdList") Set<Long> comboIdList, @RequestParam("skuIdList") List<Long> skuIdList);
}
